from typing import Optional

import PySide6.QtCore
import PySide6.QtWidgets
from PySide6.QtCore import Qt
from PySide6.QtWidgets import QListWidget, QWidget
from PySide6.QtWidgets import QListWidgetItem
from .FormValueUpdate import FormValueUpdate


class ListWidgetDataUpdate(QListWidget):
    def __init__(self, parent: Optional[PySide6.QtWidgets.QWidget] = ...) -> None:
        super().__init__(parent=parent)
        item_ = QListWidgetItem()
        self.addItem(item_)
        self.setItemWidget(item_, FormValueUpdate())
